using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.FIM
{
    using System;
    using System.Collections.Generic;

    [Table("fim_payment_cheques"), DataContract]
    //[Table("FimPayCheque"), DataContract]
    public class PayCheque
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PayChequeId", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("pay_cheque_seq")]
        public int PayChequeId { get; set; }

        [ForeignKey("Pay")]
        [DataMember, Display(Name = "PayId", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("pay_seq")]
        public int PayId { get; set; }

        [ForeignKey("Cheque")]
        [DataMember, Display(Name = "ChequeId", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("cheque_seq")]
        public int ChequeId { get; set; }

        [DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("amount")]
        public Nullable<decimal> Amount { get; set; }

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PaymentChequesResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual FIM.Pay Pay { get; set; }

		public virtual FIM.Cheque Cheque { get; set; }

    }
}